﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace jTCodeGenerate.Models
{
    public class TemplateMdoel
    {
        public long Id { get; set; }
        /// <summary>
        /// 显示名称
        /// </summary>
        public string DisplayName { get; set; }
        /// <summary>
        /// 执行顺序
        /// </summary>
        public long Order { get; set; }
        /// <summary>
        /// 别名
        /// </summary>
        public string Alias { get; set; }
        /// <summary>
        /// 模板文件名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 相对路径
        /// </summary>
        public string RelativePath { get; set; }
        /// <summary>
        /// 模板内容
        /// </summary>
        public string Content { get; set; }
        /// <summary>
        /// 连接字符串
        /// </summary>
        public string ConnectionStr { get; set; }
        /// <summary>
        /// 表名后缀
        /// </summary>
        public string TableNameSuffix { get; set; }
        /// <summary>
        /// 表名前缀
        /// </summary>
        public string TableNamePrefix { get; set; }
        /// <summary>
        /// 忽略表名后缀
        /// </summary>
        public string IgnoreTableNameSuffix { get; set; }
        /// <summary>
        /// 忽略表名前缀
        /// </summary>
        public string IgnoreTableNamePrefix { get; set; }

        /// <summary>
        /// 实体后缀
        /// </summary>
        public string EntitySuffix { get; set; }
        /// <summary>
        /// 实体前缀
        /// </summary>
        public string EntityPrefix { get; set; }

        /// <summary>
        /// 忽略实体后缀
        /// </summary>
        public string IgnoreEntitySuffix { get; set; }
        /// <summary>
        /// 忽略实体前缀
        /// </summary>
        public string IgnoreEntityPrefix { get; set; }
        /// <summary>
        /// 实体生成路径
        /// </summary>
        public string EntityGeneratePath { get; set; }
        /// <summary>
        /// 主键多个用“;”分号分割
        /// </summary>
        public string Key { get; set; } = "Id";
        /// <summary>
        /// 主键类型
        /// </summary>
        public string KeyType { get; set; } = "int";
        /// <summary>
        /// 忽略字段多个用“;”分号分割
        /// </summary>
        public string IgnoreField { get; set; }
        public dynamic Parent { get; set; }
        /// <summary>
        /// 文件后缀
        /// </summary>
        public string FileSuffix { get; set; }
        public string SolName { get; set; }
        public long SolId { get; set; }
    }
}
